import 'package:wanchong/bean/video_list_entity.dart';
import 'package:wanchong/bean/im_test_entity.dart';
import 'package:wanchong/bean/strategy_detail_entity.dart';
import 'package:wanchong/bean/pow_login_entity.dart';
import 'package:wanchong/bean/send_sms_response_entity.dart';
import 'package:wanchong/bean/account_entity.dart';
import 'package:wanchong/bean/invitation_entity.dart';
import 'package:wanchong/bean/strategy_entity.dart';
import 'package:wanchong/bean/im_user_info_entity.dart';
import 'package:wanchong/bean/video_entity.dart';
import 'package:wanchong/bean/login_entity.dart';
import 'package:wanchong/bean/im_android_entity.dart';
import 'package:wanchong/bean/success_entity.dart';
import 'package:wanchong/bean/im_conversation_android_entity.dart';
import 'package:wanchong/bean/user_info_entity.dart';
import 'package:wanchong/bean/rec_video_entity.dart';
import 'package:wanchong/bean/im_entity.dart';
import 'package:wanchong/bean/wend_list_entity.dart';
import 'package:wanchong/bean/login_go_entity.dart';
import 'package:wanchong/bean/im_conversation_entity.dart';
import 'package:wanchong/bean/im_user_info_android_entity.dart';
import 'package:wanchong/bean/pet_info_entity.dart';
import 'package:wanchong/bean/cats_entity.dart';
import 'package:wanchong/bean/set_password_entity.dart';
import 'package:wanchong/bean/cat_group_entity.dart';

class EntityFactory {
  static T generateOBJ<T>(json) {
    if (1 == 0) {
      return null;
    } else if (T.toString() == "VideoListEntity") {
      return VideoListEntity.fromJson(json) as T;
    } else if (T.toString() == "ImTestEntity") {
      return ImTestEntity.fromJson(json) as T;
    } else if (T.toString() == "StrategyDetailEntity") {
      return StrategyDetailEntity.fromJson(json) as T;
    } else if (T.toString() == "PowLoginEntity") {
      return PowLoginEntity.fromJson(json) as T;
    } else if (T.toString() == "SendSmsResponseEntity") {
      return SendSmsResponseEntity.fromJson(json) as T;
    } else if (T.toString() == "AccountEntity") {
      return AccountEntity.fromJson(json) as T;
    } else if (T.toString() == "InvitationEntity") {
      return InvitationEntity.fromJson(json) as T;
    } else if (T.toString() == "StrategyEntity") {
      return StrategyEntity.fromJson(json) as T;
    } else if (T.toString() == "ImUserInfoEntity") {
      return ImUserInfoEntity.fromJson(json) as T;
    } else if (T.toString() == "VideoEntity") {
      return VideoEntity.fromJson(json) as T;
    } else if (T.toString() == "LoginEntity") {
      return LoginEntity.fromJson(json) as T;
    } else if (T.toString() == "ImAndroidEntity") {
      return ImAndroidEntity.fromJson(json) as T;
    } else if (T.toString() == "SuccessEntity") {
      return SuccessEntity.fromJson(json) as T;
    } else if (T.toString() == "ImConversationAndroidEntity") {
      return ImConversationAndroidEntity.fromJson(json) as T;
    } else if (T.toString() == "UserInfoEntity") {
      return UserInfoEntity.fromJson(json) as T;
    } else if (T.toString() == "RecVideoEntity") {
      return RecVideoEntity.fromJson(json) as T;
    } else if (T.toString() == "ImEntity") {
      return ImEntity.fromJson(json) as T;
    } else if (T.toString() == "WendListEntity") {
      return WendListEntity.fromJson(json) as T;
    } else if (T.toString() == "LoginGoEntity") {
      return LoginGoEntity.fromJson(json) as T;
    } else if (T.toString() == "ImConversationEntity") {
      return ImConversationEntity.fromJson(json) as T;
    } else if (T.toString() == "ImUserInfoAndroidEntity") {
      return ImUserInfoAndroidEntity.fromJson(json) as T;
    } else if (T.toString() == "PetInfoEntity") {
      return PetInfoEntity.fromJson(json) as T;
    } else if (T.toString() == "CatsEntity") {
      return CatsEntity.fromJson(json) as T;
    } else if (T.toString() == "SetPasswordEntity") {
      return SetPasswordEntity.fromJson(json) as T;
    } else if (T.toString() == "CatGroupEntity") {
      return CatGroupEntity.fromJson(json) as T;
    } else {
      return null;
    }
  }
}